<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>AndBase开发框架: com.google.gson.JsonPrimitive类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ic_launcher.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">AndBase开发框架
   &#160;<span id="projectnumber">1.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1google.html">google</a></li><li class="navelem"><a class="el" href="namespacecom_1_1google_1_1gson.html">gson</a></li><li class="navelem"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pac-methods">包函数</a> &#124;
<a href="#pri-static-methods">静态 Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="#pri-static-attribs">静态 Private 属性</a> &#124;
<a href="classcom_1_1google_1_1gson_1_1_json_primitive-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.google.gson.JsonPrimitive类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 com.google.gson.JsonPrimitive 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1google_1_1gson_1_1_json_primitive.png" usemap="#com.google.gson.JsonPrimitive_map" alt=""/>
  <map id="com.google.gson.JsonPrimitive_map" name="com.google.gson.JsonPrimitive_map">
<area href="classcom_1_1google_1_1gson_1_1_json_element.html" alt="com.google.gson.JsonElement" shape="rect" coords="0,0,187,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae067a5c0840e64b8ce62942e641e68c5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#ae067a5c0840e64b8ce62942e641e68c5">JsonPrimitive</a> (Boolean bool)</td></tr>
<tr class="separator:ae067a5c0840e64b8ce62942e641e68c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cced91ba3f3fc04efdaf5b63b9e1541"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a3cced91ba3f3fc04efdaf5b63b9e1541">JsonPrimitive</a> (Number number)</td></tr>
<tr class="separator:a3cced91ba3f3fc04efdaf5b63b9e1541"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90a47160c9bb463ae604f5d826b55268"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a90a47160c9bb463ae604f5d826b55268">JsonPrimitive</a> (String string)</td></tr>
<tr class="separator:a90a47160c9bb463ae604f5d826b55268"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad64ed84c31f68394ff3ea315d09bb48d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#ad64ed84c31f68394ff3ea315d09bb48d">JsonPrimitive</a> (Character c)</td></tr>
<tr class="separator:ad64ed84c31f68394ff3ea315d09bb48d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a285d2465d17c0bffccbbffe2a2bf6e09"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a285d2465d17c0bffccbbffe2a2bf6e09">isBoolean</a> ()</td></tr>
<tr class="separator:a285d2465d17c0bffccbbffe2a2bf6e09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80a2ee967143226eb3a2d2ec0fbcb3a8"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a80a2ee967143226eb3a2d2ec0fbcb3a8">getAsBoolean</a> ()</td></tr>
<tr class="separator:a80a2ee967143226eb3a2d2ec0fbcb3a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6625a24bdec3d859deeafb2147644ec9"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a6625a24bdec3d859deeafb2147644ec9">isNumber</a> ()</td></tr>
<tr class="separator:a6625a24bdec3d859deeafb2147644ec9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a788a263fea3979b0afa05c685d527f87"><td class="memItemLeft" align="right" valign="top">Number&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a788a263fea3979b0afa05c685d527f87">getAsNumber</a> ()</td></tr>
<tr class="separator:a788a263fea3979b0afa05c685d527f87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a29d8d44b93ff2524c7c2a332d50450"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a2a29d8d44b93ff2524c7c2a332d50450">isString</a> ()</td></tr>
<tr class="separator:a2a29d8d44b93ff2524c7c2a332d50450"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5df6dad6edb786931e3eae91c4b3372"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#af5df6dad6edb786931e3eae91c4b3372">getAsString</a> ()</td></tr>
<tr class="separator:af5df6dad6edb786931e3eae91c4b3372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a7d3764344a00ec611c67b585c348a9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a3a7d3764344a00ec611c67b585c348a9">getAsDouble</a> ()</td></tr>
<tr class="separator:a3a7d3764344a00ec611c67b585c348a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e8597e962aba29951f26e1f807f7e07"><td class="memItemLeft" align="right" valign="top">BigDecimal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a8e8597e962aba29951f26e1f807f7e07">getAsBigDecimal</a> ()</td></tr>
<tr class="separator:a8e8597e962aba29951f26e1f807f7e07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae55d16a8174be072239b1b8620941d3a"><td class="memItemLeft" align="right" valign="top">BigInteger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#ae55d16a8174be072239b1b8620941d3a">getAsBigInteger</a> ()</td></tr>
<tr class="separator:ae55d16a8174be072239b1b8620941d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a198007274a5133e6e30ea1a5c8bd6833"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a198007274a5133e6e30ea1a5c8bd6833">getAsFloat</a> ()</td></tr>
<tr class="separator:a198007274a5133e6e30ea1a5c8bd6833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a81a92c31f5782c7ebf63dbb74ca739"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a5a81a92c31f5782c7ebf63dbb74ca739">getAsLong</a> ()</td></tr>
<tr class="separator:a5a81a92c31f5782c7ebf63dbb74ca739"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adde0a3f3b5f17a2c0d783c07915e5551"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#adde0a3f3b5f17a2c0d783c07915e5551">getAsShort</a> ()</td></tr>
<tr class="separator:adde0a3f3b5f17a2c0d783c07915e5551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a809df173fc7b9ffa540d2a43cd59eae1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a809df173fc7b9ffa540d2a43cd59eae1">getAsInt</a> ()</td></tr>
<tr class="separator:a809df173fc7b9ffa540d2a43cd59eae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af03008bce901bf1232090ba130ca4340"><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#af03008bce901bf1232090ba130ca4340">getAsByte</a> ()</td></tr>
<tr class="separator:af03008bce901bf1232090ba130ca4340"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1872eb85d718b321aa906abbebde034f"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a1872eb85d718b321aa906abbebde034f">getAsCharacter</a> ()</td></tr>
<tr class="separator:a1872eb85d718b321aa906abbebde034f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a933e7380e08fae8fb84f0411bc1569"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a5a933e7380e08fae8fb84f0411bc1569">hashCode</a> ()</td></tr>
<tr class="separator:a5a933e7380e08fae8fb84f0411bc1569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5913dee72d1da8290808094fadfc9fcf"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a5913dee72d1da8290808094fadfc9fcf">equals</a> (Object obj)</td></tr>
<tr class="separator:a5913dee72d1da8290808094fadfc9fcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcom_1_1google_1_1gson_1_1_json_element')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">com.google.gson.JsonElement</a></td></tr>
<tr class="memitem:aba67eec527d3e87cfaecf7e0fb78996b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aba67eec527d3e87cfaecf7e0fb78996b">isJsonArray</a> ()</td></tr>
<tr class="separator:aba67eec527d3e87cfaecf7e0fb78996b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accc3683bef9e57bd35ef9a4f84cfdfd4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#accc3683bef9e57bd35ef9a4f84cfdfd4">isJsonObject</a> ()</td></tr>
<tr class="separator:accc3683bef9e57bd35ef9a4f84cfdfd4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8309c61ca804aa6791bb98615f632ffc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a8309c61ca804aa6791bb98615f632ffc">isJsonPrimitive</a> ()</td></tr>
<tr class="separator:a8309c61ca804aa6791bb98615f632ffc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ced30d29f8df0a1f25bd7f4ae27a07d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a2ced30d29f8df0a1f25bd7f4ae27a07d">isJsonNull</a> ()</td></tr>
<tr class="separator:a2ced30d29f8df0a1f25bd7f4ae27a07d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01b87a509ef70d484134407a821df874 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_object.html">JsonObject</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a01b87a509ef70d484134407a821df874">getAsJsonObject</a> ()</td></tr>
<tr class="separator:a01b87a509ef70d484134407a821df874 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23e0f4948cf60ffaf39d1e1ddb7c9db5 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_array.html">JsonArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a23e0f4948cf60ffaf39d1e1ddb7c9db5">getAsJsonArray</a> ()</td></tr>
<tr class="separator:a23e0f4948cf60ffaf39d1e1ddb7c9db5 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75e7e0206f4d4cdf9732d3bec97b45e4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a75e7e0206f4d4cdf9732d3bec97b45e4">getAsJsonPrimitive</a> ()</td></tr>
<tr class="separator:a75e7e0206f4d4cdf9732d3bec97b45e4 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35e6d1d699a7dd07d2aeeceefef88fe3 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_null.html">JsonNull</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a35e6d1d699a7dd07d2aeeceefef88fe3">getAsJsonNull</a> ()</td></tr>
<tr class="separator:a35e6d1d699a7dd07d2aeeceefef88fe3 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a6a5a9ce600cfb4cd0b6828f7b0b81 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a26a6a5a9ce600cfb4cd0b6828f7b0b81">getAsBoolean</a> ()</td></tr>
<tr class="separator:a26a6a5a9ce600cfb4cd0b6828f7b0b81 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaac43094cd4723e03b82567851fb1ee7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">Number&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aaac43094cd4723e03b82567851fb1ee7">getAsNumber</a> ()</td></tr>
<tr class="separator:aaac43094cd4723e03b82567851fb1ee7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f55688dc6c1dab2e1f18c220770d447 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a3f55688dc6c1dab2e1f18c220770d447">getAsString</a> ()</td></tr>
<tr class="separator:a3f55688dc6c1dab2e1f18c220770d447 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63c5b57e725c7fed11cd7f524f881c4d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a63c5b57e725c7fed11cd7f524f881c4d">getAsDouble</a> ()</td></tr>
<tr class="separator:a63c5b57e725c7fed11cd7f524f881c4d inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddb0a466387c9e8712809fd0d5a4d8b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a0ddb0a466387c9e8712809fd0d5a4d8b">getAsFloat</a> ()</td></tr>
<tr class="separator:a0ddb0a466387c9e8712809fd0d5a4d8b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6884174d04bee00f55600b0d01dcdc11 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a6884174d04bee00f55600b0d01dcdc11">getAsLong</a> ()</td></tr>
<tr class="separator:a6884174d04bee00f55600b0d01dcdc11 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79903075f6971e503f8eee51b55a1652 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a79903075f6971e503f8eee51b55a1652">getAsInt</a> ()</td></tr>
<tr class="separator:a79903075f6971e503f8eee51b55a1652 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf0cb719bd5219e0a2c17adeaad1e7bd inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#acf0cb719bd5219e0a2c17adeaad1e7bd">getAsByte</a> ()</td></tr>
<tr class="separator:acf0cb719bd5219e0a2c17adeaad1e7bd inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b03e0bb3b3fcfbd5358d230cb62f070 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a1b03e0bb3b3fcfbd5358d230cb62f070">getAsCharacter</a> ()</td></tr>
<tr class="separator:a1b03e0bb3b3fcfbd5358d230cb62f070 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa60f644847a9fcdc23a34ffb58e66ebc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">BigDecimal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aa60f644847a9fcdc23a34ffb58e66ebc">getAsBigDecimal</a> ()</td></tr>
<tr class="separator:aa60f644847a9fcdc23a34ffb58e66ebc inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a654514f10f9431f14333faf2e5e5f94b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">BigInteger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a654514f10f9431f14333faf2e5e5f94b">getAsBigInteger</a> ()</td></tr>
<tr class="separator:a654514f10f9431f14333faf2e5e5f94b inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b5af6018e067b1b5626d95f57b94bb1 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a2b5af6018e067b1b5626d95f57b94bb1">getAsShort</a> ()</td></tr>
<tr class="separator:a2b5af6018e067b1b5626d95f57b94bb1 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70aff0ce844684e2df39aaef22b132a7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#a70aff0ce844684e2df39aaef22b132a7">toString</a> ()</td></tr>
<tr class="separator:a70aff0ce844684e2df39aaef22b132a7 inherit pub_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pac-methods"></a>
包函数</h2></td></tr>
<tr class="memitem:acb974c8502b8a67a12e4ff6c5968ccb0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#acb974c8502b8a67a12e4ff6c5968ccb0">JsonPrimitive</a> (Object primitive)</td></tr>
<tr class="separator:acb974c8502b8a67a12e4ff6c5968ccb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1d0a55d27d3dac910ff66fe11b8a74e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#ad1d0a55d27d3dac910ff66fe11b8a74e">setValue</a> (Object primitive)</td></tr>
<tr class="separator:ad1d0a55d27d3dac910ff66fe11b8a74e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90951c20822861e5510b110b58881da5"><td class="memItemLeft" align="right" valign="top">Boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a90951c20822861e5510b110b58881da5">getAsBooleanWrapper</a> ()</td></tr>
<tr class="separator:a90951c20822861e5510b110b58881da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pac_methods_classcom_1_1google_1_1gson_1_1_json_element"><td colspan="2" onclick="javascript:toggleInherit('pac_methods_classcom_1_1google_1_1gson_1_1_json_element')"><img src="closed.png" alt="-"/>&#160;包函数 继承自 <a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html">com.google.gson.JsonElement</a></td></tr>
<tr class="memitem:aa893d8dd48c50e0a34cb5e4f3bc770f2 inherit pac_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memItemLeft" align="right" valign="top">Boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_element.html#aa893d8dd48c50e0a34cb5e4f3bc770f2">getAsBooleanWrapper</a> ()</td></tr>
<tr class="separator:aa893d8dd48c50e0a34cb5e4f3bc770f2 inherit pac_methods_classcom_1_1google_1_1gson_1_1_json_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
静态 Private 成员函数</h2></td></tr>
<tr class="memitem:a179e7bf50bde7c953fd73304690a288d"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a179e7bf50bde7c953fd73304690a288d">isPrimitiveOrString</a> (Object target)</td></tr>
<tr class="separator:a179e7bf50bde7c953fd73304690a288d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ead6c7f1d2ddb7b2e02d1324e996ca8"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#a0ead6c7f1d2ddb7b2e02d1324e996ca8">isIntegral</a> (<a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a> primitive)</td></tr>
<tr class="separator:a0ead6c7f1d2ddb7b2e02d1324e996ca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:afceee19eefc7def0895fc54f7f76d3d4"><td class="memItemLeft" align="right" valign="top">Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#afceee19eefc7def0895fc54f7f76d3d4">value</a></td></tr>
<tr class="separator:afceee19eefc7def0895fc54f7f76d3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
静态 Private 属性</h2></td></tr>
<tr class="memitem:ac6b103db7619db95109f665734fb82ef"><td class="memItemLeft" align="right" valign="top">static final Class&lt;?&gt;[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html#ac6b103db7619db95109f665734fb82ef">PRIMITIVE_TYPES</a></td></tr>
<tr class="separator:ac6b103db7619db95109f665734fb82ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A class representing a Json primitive value. A primitive value is either a String, a Java primitive, or a Java primitive wrapper type.</p>
<dl class="section author"><dt>作者</dt><dd>Inderjeet Singh </dd>
<dd>
Joel Leitch </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="ae067a5c0840e64b8ce62942e641e68c5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.google.gson.JsonPrimitive.JsonPrimitive </td>
          <td>(</td>
          <td class="paramtype">Boolean&#160;</td>
          <td class="paramname"><em>bool</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a primitive containing a boolean value.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bool</td><td>the value to create the primitive with. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3cced91ba3f3fc04efdaf5b63b9e1541"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.google.gson.JsonPrimitive.JsonPrimitive </td>
          <td>(</td>
          <td class="paramtype">Number&#160;</td>
          <td class="paramname"><em>number</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a primitive containing a <a class="el" href="">Number</a>.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>the value to create the primitive with. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a90a47160c9bb463ae604f5d826b55268"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.google.gson.JsonPrimitive.JsonPrimitive </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a primitive containing a String value.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td>the value to create the primitive with. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad64ed84c31f68394ff3ea315d09bb48d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.google.gson.JsonPrimitive.JsonPrimitive </td>
          <td>(</td>
          <td class="paramtype">Character&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a primitive containing a character. The character is turned into a one character String since Json only supports String.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>the value to create the primitive with. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acb974c8502b8a67a12e4ff6c5968ccb0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">com.google.gson.JsonPrimitive.JsonPrimitive </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>primitive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a primitive using the specified Object. It must be an instance of <a class="el" href="">Number</a>, a Java primitive type, or a String.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">primitive</td><td>the value to create the primitive with. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a5913dee72d1da8290808094fadfc9fcf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonPrimitive.equals </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a8e8597e962aba29951f26e1f807f7e07"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BigDecimal com.google.gson.JsonPrimitive.getAsBigDecimal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a <a class="el" href="">BigDecimal</a>.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a <a class="el" href="">BigDecimal</a>. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid <a class="el" href="">BigDecimal</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae55d16a8174be072239b1b8620941d3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BigInteger com.google.gson.JsonPrimitive.getAsBigInteger </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a <a class="el" href="">BigInteger</a>.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a <a class="el" href="">BigInteger</a>. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid <a class="el" href="">BigInteger</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a80a2ee967143226eb3a2d2ec0fbcb3a8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonPrimitive.getAsBoolean </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a boolean value.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a primitive boolean value. </dd></dl>

</div>
</div>
<a class="anchor" id="a90951c20822861e5510b110b58881da5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Boolean com.google.gson.JsonPrimitive.getAsBooleanWrapper </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a <a class="el" href="">Boolean</a>.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a <a class="el" href="">Boolean</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="af03008bce901bf1232090ba130ca4340"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">byte com.google.gson.JsonPrimitive.getAsByte </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1872eb85d718b321aa906abbebde034f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char com.google.gson.JsonPrimitive.getAsCharacter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3a7d3764344a00ec611c67b585c348a9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double com.google.gson.JsonPrimitive.getAsDouble </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a primitive double.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a primitive double. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid double. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a198007274a5133e6e30ea1a5c8bd6833"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float com.google.gson.JsonPrimitive.getAsFloat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a float.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a float. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid float. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a809df173fc7b9ffa540d2a43cd59eae1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.google.gson.JsonPrimitive.getAsInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a primitive integer.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a primitive integer. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid integer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5a81a92c31f5782c7ebf63dbb74ca739"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long com.google.gson.JsonPrimitive.getAsLong </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a primitive long.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a primitive long. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid long. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a788a263fea3979b0afa05c685d527f87"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Number com.google.gson.JsonPrimitive.getAsNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a Number.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a Number. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid Number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adde0a3f3b5f17a2c0d783c07915e5551"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">short com.google.gson.JsonPrimitive.getAsShort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a primitive short.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a primitive short. </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NumberFormatException</td><td>if the value contained is not a valid short value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af5df6dad6edb786931e3eae91c4b3372"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.google.gson.JsonPrimitive.getAsString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>convenience method to get this element as a String.</p>
<dl class="section return"><dt>返回</dt><dd>get this element as a String. </dd></dl>

</div>
</div>
<a class="anchor" id="a5a933e7380e08fae8fb84f0411bc1569"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.google.gson.JsonPrimitive.hashCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a285d2465d17c0bffccbbffe2a2bf6e09"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonPrimitive.isBoolean </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check whether this primitive contains a boolean value.</p>
<dl class="section return"><dt>返回</dt><dd>true if this primitive contains a boolean value, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a0ead6c7f1d2ddb7b2e02d1324e996ca8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean com.google.gson.JsonPrimitive.isIntegral </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1google_1_1gson_1_1_json_primitive.html">JsonPrimitive</a>&#160;</td>
          <td class="paramname"><em>primitive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns true if the specified number is an integral type (Long, Integer, Short, Byte, BigInteger) </p>

</div>
</div>
<a class="anchor" id="a6625a24bdec3d859deeafb2147644ec9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonPrimitive.isNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check whether this primitive contains a Number.</p>
<dl class="section return"><dt>返回</dt><dd>true if this primitive contains a Number, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a179e7bf50bde7c953fd73304690a288d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean com.google.gson.JsonPrimitive.isPrimitiveOrString </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2a29d8d44b93ff2524c7c2a332d50450"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.google.gson.JsonPrimitive.isString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check whether this primitive contains a String value.</p>
<dl class="section return"><dt>返回</dt><dd>true if this primitive contains a String value, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ad1d0a55d27d3dac910ff66fe11b8a74e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.google.gson.JsonPrimitive.setValue </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>primitive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="ac6b103db7619db95109f665734fb82ef"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final Class&lt;?&gt; [] com.google.gson.JsonPrimitive.PRIMITIVE_TYPES</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>初始值:</b><div class="fragment"><div class="line">= { <span class="keywordtype">int</span>.class, <span class="keywordtype">long</span>.class, <span class="keywordtype">short</span>.class,</div>
<div class="line">      <span class="keywordtype">float</span>.class, <span class="keywordtype">double</span>.class, byte.class, <span class="keywordtype">boolean</span>.class, <span class="keywordtype">char</span>.class, Integer.class, Long.class,</div>
<div class="line">      Short.class, Float.class, Double.class, Byte.class, Boolean.class, Character.class }</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="afceee19eefc7def0895fc54f7f76d3d4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Object com.google.gson.JsonPrimitive.value</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/com/google/gson/<a class="el" href="_json_primitive_8java.html">JsonPrimitive.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 十一月 6日 星期四 11:22:04 , 为 AndBase开发框架使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
